package main.java.rock.acm.dp;

import java.util.Scanner;
import java.util.concurrent.atomic.AtomicInteger;

public class Main11 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        String line = scan.nextLine();
        AtomicInteger xiao_mei = new AtomicInteger(0);
        AtomicInteger xiao_tuan = new AtomicInteger(0);
        for (int i=0 ; i<line.length();i++){
            if(i<=19){
                count_9(line,xiao_mei,xiao_tuan,i);
            }else{
                count_10(line,xiao_mei,xiao_tuan,i);
            }
        }
        System.out.println(xiao_mei.get()+":" + xiao_tuan);
    }
    static void count_10(String line,AtomicInteger xiao_mei,AtomicInteger xiao_tuan,int i){
        boolean is_xiaomei = true;
            if(i%2>=1){
                is_xiaomei = false;
            }else{
                is_xiaomei = true;
            }

            if(is_xiaomei){
                if(line.charAt(i) == '1'){
                    xiao_mei.addAndGet(1);
                }else{
                    xiao_tuan.addAndGet(1);
                }
            }else{
                if(line.charAt(i) == '1'){
                    xiao_tuan.addAndGet(1);
                }else{
                    xiao_mei.addAndGet(1);
                }
            }
    }

    static void count_9(String line,AtomicInteger xiao_mei,AtomicInteger xiao_tuan,int i){
        boolean is_xiaomei = true;

            if(i%4>=2){
                is_xiaomei = false;
            }else{
                is_xiaomei = true;
            }
            if(is_xiaomei){
                if(line.charAt(i) == '1'){
                    xiao_mei.addAndGet(1);
                }else{
                    xiao_tuan.addAndGet(1);
                }
            }else{
                if(line.charAt(i) == '1'){
                    xiao_tuan.addAndGet(1);
                }else{
                    xiao_mei.addAndGet(1);
                }
            }

    }
}
